package com.after.saas.client.service;

import com.after.saas.client.service.factory.DictServiceHystrixFactory;
import com.after.saas.common.constants.Result;
import com.after.saas.common.constants.ServiceNameEnum;
import com.after.saas.common.model.bo.CoreDictBO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

/**
 * @Classname RemoteDictService
 * @Description TODO
 * @auth after
 * @since 2021/7/20 21:11
 */

@FeignClient(contextId = "dictService", value = ServiceNameEnum.USER_SERVICE, fallbackFactory = DictServiceHystrixFactory.class)
public interface RemoteDictService {

    @PostMapping("/user/dict-data/batchSave")
    Result<Boolean> batchSave(List<CoreDictBO> e);
}
